/*
 * ColTemaDTIterator.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "ColTemaDTIterator.h"

ColTemaDTIterator::ColTemaDTIterator(IIterator *iter)
{
	this->iter = iter;
}
void ColTemaDTIterator::next()
{
	iter->next();
}

bool ColTemaDTIterator::hasCurrent()
{
	return iter->hasCurrent();
}
TemaDT *ColTemaDTIterator::current()
{
	return (TemaDT*) iter->current();
}

ColTemaDTIterator::~ColTemaDTIterator()
{
	iter->~IIterator();

		delete iter;
}

